from deepdiff import extract

obj = {'a': [{'2': 'b'}, 3], 'b': [4, 5]}
# 路径解析： root + 键名
path = 'root[a]'
print(extract(obj,path))
